home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NOVA - For the NeXT Workstation
/
NOVA - For the NeXT Workstation.iso
/
Documents
/
NeXTAnswers
/
sysadmin.833
< prev
next >
Wrap
Text File
|
1992-02-06
|
2KB
|
73 lines
{\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f1\fmodern Courier;\f2\fmodern Ohlfs;}
\paperw11440
\paperh9000
\margl120
\margr120
{\colortbl;\red0\green0\blue0;}
\pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ul0\fs28\fc0\cf0 fstab altered system won't boot\
\
Q: I changed
\b /etc/fstab
\b0 , and now my NeXT won't boot. If I boot in single-user mode, I can't edit
\b /etc/fstab
\b0 to fix it because the file system is read-only. What do I do to fix it?\
\
A:
\pard\tx620\tx1240\tx1860\tx2480\tx3100\tx3720\tx4340\tx4980\tx5600\tx6220\fc1\cf1 The start-up script
\b /etc/rc.boot
\b0 makes the root filesystem read-write with the command:\
\
\f1\fs24 mount -o remount /
\fs28 \
\f0 \
The
\b mount
\b0 command looks in
\b /etc/fstab
\b0 for an entry that describes "
\b /
\b0 ". It should find a line like:\
\
\f1\fs24 /dev/sd0a / 4.3 rw,noquota,noauto 0 1\
\f0\fs28 \
This means that the filesystem on the device sd0a should be mounted as the root ("/") filesystem. If this line in the
\b /etc/fstab
\b0 file is missing, incorrect, or damaged, the mount command will fail. You are left with a read-only root filesystem.\
\
The solution is to re-mount the root file system with the shell command:\
\
\f1\fs24 # mount -o remount /dev/sd0a /\
\f0\fs28 \
In this form, you are telling mount exactly which device to use, so it doesn't look in
\b /etc/fstab
\b0 and get confused. Once you have the root filesystem mounted read-write, fix it with a text editor or get a copy of a default
\b /etc/fstab
\b0 . You can find default copies in
\b /usr/template/client
\b0 . i.e.:\
\
\f1\fs24 # cp /usr/template/client/etc/fstab.sd330 /etc/fstab\
\f0\fs28 \
Then shut down and reboot your system:\
\
\f1\fs24 # halt\
...\
NeXT>bsd\
\pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\fs28\fc1\cf1 \
QA833\
\
Valid for 1.0\
Valid for 2.0\
\